from django.urls import re_path
from . import views

urlpatterns = [
    # 商品列表页
    re_path(r'^list/(?P<category_id>\d+)/skus/$', views.ListView.as_view()),
    # 热销商品排行
    re_path(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view()),

    re_path(r'^search/$', views.MySearchView()),
# 统计分类商品访问量后端逻辑
    re_path(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailVisitView.as_view()),
]
